package de.tsystems.dict.client;
import com.google.gwt.core.client.JavaScriptObject;

class WordData extends JavaScriptObject {                              // (1)
    // Overlay types always have protected, zero argument constructors.
    protected WordData() {}                                              // (2)

    // JSNI methods to get stock data.
    public final native String getId() /*-{ return this.id; }-*/;
//    public final native String getLanguage() /*-{ return this.price; }-*/;
    public final native String getText() /*-{ return this.change; }-*/;
//
//    // Non-JSNI method to return change percentage.                       // (4)
//    public final double getChangePercent() {
//        return 100.0 * getChange() / getPrice();
//    }
}